//
//  WJTabBar.m
//  BeDeJie
//
//  Created by jerry on 2017/1/25.
//  Copyright © 2017年 jerry. All rights reserved.
//

#import "WJTabBar.h"

@interface WJTabBar()

//上一次点击的按钮
@property (nonatomic, weak) UIControl *previousClickedTabBarButton;

@end

@implementation WJTabBar

//tabBarButton的点击
- (void)tabBarButtonClick:(UIControl *)tabBarButton{
    
    if (self.previousClickedTabBarButton == tabBarButton) {
        // 发出通知，告知外界tabBarButton被重复点击了
        [[NSNotificationCenter defaultCenter] postNotificationName:WJTabBarButtonDidRepeatClickNotification object:nil];
    }
    
    self.previousClickedTabBarButton = tabBarButton;
}


@end
